{

// 类型别名 - 通过type声明
// type Name = string;
// let str: Name = 'abc';

// 有点儿像 接口 interface
type Person = {
    name: string,
    age: number
}
let p: Person = {
    name: '迪丽热巴',
    age: 20
}
console.log(p);

// 加了中括号，就变成数组类型
type PersonType = Person[];
// [{name, age}, {name, age}, {name, age}]
let arr: PersonType;
arr = [
    { name: '迪丽热巴', age: 20 },
    { name: '迪丽热巴', age: 20 }
]


}